import React from 'react';
import { TopStyle } from './styledList';
import Button from '@/components/button/Button'
const Top = (props) => {
    const { title, unit,value,click } = props;
    return (
        <TopStyle>
            <h2>
                {value}<span>{unit}</span>
            </h2>
            <Button
            size='small'
                color='#FFF'
                bgColor='#fddb78'
                strong
                click={click}
            >记录{title}</Button>
        </TopStyle>
    );
}

export default Top;
